package com.sitech.openapi.domain.user;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

@ApiModel(value = "CProdInstAttr", description = "产品实例属性")
public class GprodResInstRel implements Serializable {

    private static final long serialVersionUID = 1L;

    // 记录产品实例营销资源实例关系标识，主键。
    @ApiModelProperty(value = "产品实例营销资源实例关系标识")
    private Long prodResInstRelId;

    // 记录产品实例标识，外键。
    @ApiModelProperty(value = "产品实例标识")
    private Long prodInstId;

    //
    @ApiModelProperty(value = "外部产品实例标识")
    private String extProdInstId;

    //
    @ApiModelProperty(value = "营销资源实例编码")
    private String mktResInstNbr;

    // 记录营销资源标识。
    @ApiModelProperty(value = "营销资源标识")
    private Integer mktResId;

    // 记录该资源的使用产品实例，例如终端的的使用产品实例。
    @ApiModelProperty(value = "使用产品实例标识")
    private Long useProdInstId;

    // 记录关系类型，表达销售品同营销资源的关联方式，LOVB=PRI-C-0023
    @ApiModelProperty(value = "关系类型")
    private String relType;

    // 记录资源数量。
    @ApiModelProperty(value = "资源数量")
    private Integer mktResNum;

    // 记录状态。LOVB=PUB-C-0001。
    @ApiModelProperty(value = "状态")
    private String statusCd;

    // 记录上一次维护记录的订单项标识。
    @ApiModelProperty(value = "最后订单标识")
    private Long lastOrderItemId;

    // 记录备注信息。
    @ApiModelProperty(value = "备注")
    private String remark;

    public Long getProdResInstRelId() {
        return prodResInstRelId;
    }

    public void setProdResInstRelId(Long prodResInstRelId) {
        this.prodResInstRelId = prodResInstRelId;
    }

    public Long getProdInstId() {
        return prodInstId;
    }

    public void setProdInstId(Long prodInstId) {
        this.prodInstId = prodInstId;
    }

    public String getExtProdInstId() {
        return extProdInstId;
    }

    public void setExtProdInstId(String extProdInstId) {
        this.extProdInstId = extProdInstId;
    }

    public String getMktResInstNbr() {
        return mktResInstNbr;
    }

    public void setMktResInstNbr(String mktResInstNbr) {
        this.mktResInstNbr = mktResInstNbr;
    }

    public Integer getMktResId() {
        return mktResId;
    }

    public void setMktResId(Integer mktResId) {
        this.mktResId = mktResId;
    }

    public Long getUseProdInstId() {
        return useProdInstId;
    }

    public void setUseProdInstId(Long useProdInstId) {
        this.useProdInstId = useProdInstId;
    }

    public String getRelType() {
        return relType;
    }

    public void setRelType(String relType) {
        this.relType = relType;
    }

    public Integer getMktResNum() {
        return mktResNum;
    }

    public void setMktResNum(Integer mktResNum) {
        this.mktResNum = mktResNum;
    }

    public String getStatusCd() {
        return statusCd;
    }

    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }

    public Long getLastOrderItemId() {
        return lastOrderItemId;
    }

    public void setLastOrderItemId(Long lastOrderItemId) {
        this.lastOrderItemId = lastOrderItemId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "GprodResInstRel{" +
                "prodResInstRelId=" + prodResInstRelId +
                ", prodInstId=" + prodInstId +
                ", extProdInstId='" + extProdInstId + '\'' +
                ", mktResInstNbr='" + mktResInstNbr + '\'' +
                ", mktResId=" + mktResId +
                ", useProdInstId=" + useProdInstId +
                ", relType='" + relType + '\'' +
                ", mktResNum=" + mktResNum +
                ", statusCd='" + statusCd + '\'' +
                ", lastOrderItemId=" + lastOrderItemId +
                ", remark='" + remark + '\'' +
                '}';
    }
}
